package aapilast3;

public class ReflectDemo2 {
    public static void main(String[] args) throws Exception {
        Person p = new Person();
        System.out.println(p);
        Class<?> cls = Class.forName("aapilast3.Person");
        Object obj = cls.newInstance();//实例化类对象
        System.out.println(obj);
    }
}
